package com.sqf.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Goods implements Serializable{

    private Integer id;//主键
    private String name;//商品名称
    private double price;//价格
    private String Imge_url;//图片路竟
    private Integer upper_Status;//上架状态

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date factory_date;//出厂

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", Imge_url='" + Imge_url + '\'' +
                ", upper_Status=" + upper_Status +
                ", factory_date=" + factory_date +
                '}';
    }
}
